#include<iostream>
#include"Server.hpp"
using namespace std;

int main()
{
    Server s;
    s.OpenfifoRead();
    string message;
    while (true)
    {
        
        if(s.Readfifo(&message)>0)
        {
            cout<<"message111111: "<<message<<endl;
        }
        else
        {
            break;
        }
       
    }
    
    cout<<"Client quit,me too!"<<endl;
    s.Closefifo();
    return 0;
}